package com.top10.service.impl;

import com.top10.entity.Stock;
import com.top10.mapper.StockMapper;
import com.top10.service.IStockService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ellen
 * @since 2018-09-29
 */
@Service
public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements IStockService {

    @Autowired
    StockMapper stockMapper;

    @Override
    public List<Stock> getStock(Integer id) {
        return stockMapper.getStock(id);
    }
}
